<!DOCTYPE html>
<html>

<head>
    <title>收到的赞</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/message.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>
    <script>
        $(function () {
            var user = JSON.parse(sessionStorage.getItem("user"));
            if (user.id) {
                //获取游记的未读点赞的数量
                $.get("/mydogood/" + user.id + "/allDoGood", function (data) {
                    if (data > 0) {
                        $(".travel").html(data);
                        $("#travel").prop("href","")
                        $("#travel").prop("href","/mine/myTravelDoGood.html?state=1")
                    }else{
                        $("#travel").prop("href","/mine/myTravelDoGood.html?state=0")
                    }
                })
            }
        })
    </script>
</head>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="/index.html">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>
        </div>
        <div class="col">
            <span>收到的赞</span>
        </div>
        <div class="col"></div>
    </div>
</div>

<ul class="list-group">

    <a id="travel">
        <li class="list-group-item d-flex justify-content-between align-items-center">
            <div class="item">
                <span><i class="fa fa-at"></i></span>
                <span>游记</span>
                <span class="badge badge-danger badge-pill travel"></span>
            </div>
            <i class="fa fa-chevron-right"></i>
        </li>
    </a>

    <a id="dynamic" href="#">
        <li class="list-group-item d-flex justify-content-between align-items-center">
            <div class="item">
                <span><i class="fa fa-envelope-o"></i></span>
                <span>动态</span>
                <span class="badge badge-danger badge-pill" id="xoxo"></span>
            </div>
            <i class="fa fa-chevron-right"></i>
        </li>
    </a>
</ul>
</body>
</html>